﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=yes" />
    <meta name="format-detection" content="email=no" />

    <link href="newcss/UpStyle.css" rel="stylesheet" />
    <script src="js/js/zepto.min.js"></script>
    <script src="js/js/main.js"></script>
    <script src="js/js/tool.js"></script>
    <title>有没有限评估有限公司内部勘察系统</title>
    <!--<link href="js/css/style.css" rel="stylesheet" />-->
</head>

<body style=" background:#366c54;">
    <header class="ui-header">
        <h1>建筑公共部分</h1>
        <div class="ui-header-left"><a class="ui-header-ico-home" href="Content.html"></a></div>
        <div class="ui-header-right">
            <a id="openMenu" class="ui-header-ico-menu" href="javascript:;#mp.weixin.qq.com"></a>
        </div>
    </header>

    <section class="c_main">
        <h2 style="background-color:#d4c8c8">基本信息</h2>

        <div class="Indoor">

            <dl>
                <dt>哪栋楼：</dt>
                <dd>
                    <input name="T_Buildingafew" class="input_boxfield" id="T_Buildingafew" value="" placeholder="" type="text" />
                </dd>
            </dl>
            <dl style="margin-top:10px">
                <dt style="margin-bottom:10px">
                    <button class="button blue" id="Clickontheget" type="button" onclick="getLocation()">
                        确认定位
                    </button>
                </dt>
                <dd>
                    <!--<button class="button blue" id="Clickontheget" data-id="190317" type="button" onclick="getLocation()">
                        点击刷新
                    </button>-->
                    <style type="text/css">
                        #allmap {
                            width: 100%;
                            height: 250px;
                            overflow: hidden;
                            margin: 0;
                            font-family: "微软雅黑";
                        }
                    </style>

                    <div id="allmap"></div>
                </dd>
            </dl>
            <dl>
                <dt>定位坐标：</dt>
                <dd>
                    <input name="T_Location" class="input_boxfield" id="T_Location" type="text" disabled="disabled" />
                </dd>
            </dl>
            <dl>
                <dt>定位地址：</dt>

                <dd>
                    <input name="T_LocationAddress" class="input_boxfield" id="T_LocationAddress" type="text" disabled="disabled" />
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>房屋结构：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">钢筋混凝土</option>
                            <option value="">砖混结构</option>
                            <option value="">混合结构</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>建筑类型：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">高板</option>
                            <option value="">高塔</option>
                            <option value="">塔板结合</option>
                            <option value="">多层</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>外立面装饰：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">清水砖墙</option>
                            <option value="">石材</option>
                            <option value="">涂料</option>
                            <option value="">局部石材，局部涂料</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>公共部位装修：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">普通装修（水泥地面，墙面涂料，普通照明）</option>
                            <option value="">豪华装饰（墙面地面石材，不锈钢扶手）</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>电梯：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">无电梯</option>
                            <option value="">有电梯 部</option>
                            <option value="">每层 户</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>供气：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">管道燃气入户</option>
                            <option value="">无管道燃气</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>供水：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">市政供水</option>
                            <option value="">无市政供水</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>供暖：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">集中供暖</option>
                            <option value="">分户采暖</option>
                            <option value="">无采暖设施</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>门禁系统：</dt>
                <dd>
                    <span class="selectOption">
                        <select id="T_purposeID" name="T_purposeID">
                            <option value="" selected="selected">有</option>
                            <option value="">无</option>
                        </select>
                    </span>
                </dd>
            </dl>

            <dl class="Indoordl">
                <dt>相关说明：</dt>
                <dd>
                    <textarea name="T_Explain" class="pxtextarea" style=" height:99px;overflow-y:visible" id="T_Explain" placeholder="请输入备注信息"></textarea>
                </dd>
            </dl>
            <dl class="Indoordl">
                <dd id="jbSubSave">
                    <button type="button" class="button blue" id="jbSub" onclick="insertIndoor()">
                        保存
                    </button>
                </dd>
            </dl>
        </div>
    </section>
    <!--<script type="text/javascript" src="js/js/json1.js"></script>
    <script type="text/javascript" src="js/js/json4.js"></script>
    <script type="text/javascript" src="js/js/json2.js"></script>
    <script type="text/javascript" src="js/js/json3.js"></script>
    <script type="text/javascript" src="js/js/json5.js"></script>-->
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=1aSxbQ5iyGsTwoG9GGgDpU0ryfXiYfpa&coor=bd09ll"></script>
    <script type="text/javascript">
        var map = new BMap.Map("allmap");//创建地图实例
        //页面初始化
        $(function () {
            //初始化地图 默认加载北京天安门
            var point = new BMap.Point(116.331398, 39.897445);
            map.centerAndZoom(point, 16);//初始化地图，point为中心点，缩放级别为16
            //判断手机浏览器是否支持定位
            if (navigator.geolocation) {
                var geolocation = new BMap.Geolocation();//创建定位实例
                geolocation.getCurrentPosition(showLocation, { enableHighAccuracy: true });//enableHighAccuracy 要求浏览器获取最佳结果
            } else {
                map.addControl(new BMap.GeolocationControl());//添加定位控件 支持定位
            }
        });
        //处理定位后的信息
        function showLocation(r) {
            if (this.getStatus() == BMAP_STATUS_SUCCESS) {//定位成功
                //坐标获得
                if (wapx == 0 || wapy == 0) {
                    wapx = r.longitude;
                    wapy = r.latitude;
                }
                //新建中心点 并将地图中心移动过去
                var centerPoint = new BMap.Point(wapx, wapy);
                map.panTo(centerPoint);
                map.setCenter(centerPoint);
                $("#T_Location").val(r.longitude + "," + r.latitude);
                //新建标注
                var mk = new BMap.Marker(centerPoint);
                mk.disableDragging();// 不可拖拽
                map.addOverlay(mk);

                var geoc = new BMap.Geocoder();
                geoc.getLocation(centerPoint, getCityByCoordinate);
                //单击新地址
                map.addEventListener("click", function (e) {
                    var pt = e.point;
                    geoc.getLocation(pt, function (rs) {
                        //新建中心点 并将地图中心移动过去
                        var centerPoint = new BMap.Point(pt.lng, pt.lat);
                        map.panTo(centerPoint);
                        map.setCenter(centerPoint);
                        $("#T_Location").val(pt.lng + "," + pt.lat);

                        //删除以前的标注
                        map.removeOverlay(mk);

                        //新建标注
                        mk = new BMap.Marker(centerPoint);
                        mk.disableDragging();// 不可拖拽
                        map.addOverlay(mk);

                        var addComp = rs.addressComponents;

                        //alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
                        $("#T_LocationAddress").val(addComp.city + addComp.district + addComp.street + addComp.streetNumber);
                    });
                });
            }
            else {
                layer.msg('定位失败' + this.getStatus(), { icon: 2, time: 1000 });//定位失败
            }
        }

        function getCityByCoordinate(rs) {
            var addComp = rs.addressComponents;
            //alert(addComp);
            //alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
            $("#T_LocationAddress").val(addComp.city + addComp.district + addComp.street + addComp.streetNumber);
        }
    </script>


    <a class="more" data="0" href="javascript:;" onclick="get_article(831)">加载更多</a>
    <footer>
        <div class="copy tc">有没有限评估有限公司内部勘察系统</div>
    </footer>


</body>
</html>
